#ifndef TEST_H
#define TEST_H

#include <QObject>

class test : public QObject
{
    Q_OBJECT;
public:
    // use Q_INVOKABLE  to declare funciton,
    // then the qml can use this funcion.
    Q_INVOKABLE void setValue(int value);
    Q_INVOKABLE int getValue();

signals:

private:
    int m_value; //int value

public:
    explicit test(QObject * parent = nullptr);
};

#endif // TEST_H
